package com.vlyman.weixin.consts;

/**
 * 类描述：
 *
 * @author chenjs
 * @date 2019/7/13 21:57
 **/
public class WxUriConsts {
    /**
     * 获取jsapi_ticket
     */
    public static String WX_JS_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi";

    /**
     * 获取accessToken
     */
    public static String WX_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential";

    /**
     * 创建菜单
     */
    public static String WX_MENU_CREATE = "https://api.weixin.qq.com/cgi-bin/menu/create";
    
    /**
     * OAuth2.0第一步获取code
     */
    public static String WX_OAUTH_CODE = "https://open.weixin.qq.com/connect/oauth2/authorize";
    
    /**
     * OAuth2.0第二部获取accessToken
     */
    public static String WX_OAUTH_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";
    
    /**
     * OAuth2.0获取用户信息，需scope为snsapi_userinfo
     */
    public static String WX_OAUTH_USER_INFO = "https://api.weixin.qq.com/sns/userinfo";
    
    /**
     * 创建二维码
     */
    public static String WX_QRCODE_CREATE = "https://api.weixin.qq.com/cgi-bin/qrcode/create";
    
    /**
     * 发送模板消息
     */
    public static String WX_TEMPLATE_MSG_SEND = "https://api.weixin.qq.com/cgi-bin/message/template/send";
    
    /**
     * 统一服务消息
     * PS.小程序接口
     */
    public static String WX_UNIFORM_MSG_SEND = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=";
    
    /**
     * 长链接转短链接接口
     */
    public static String WX_SHORT_URL = "https://api.weixin.qq.com/cgi-bin/shorturl?access_token=";
    
    /**
     * 统一下单
     */
    public static String WX_UNIFIED_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    
    /**
     * 发送红包
     */
    public static String WX_RED_PACK_SEND = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack";
    
    /**
     * 企业付款到银行卡
     */
    public static String WX_PAY_BANK = "https://api.mch.weixin.qq.com/mmpaysptrans/pay_bank";
    
    /**
     * 企业付款到零钱
     */
    public static String WX_PAY_CHANGE = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";
    
    /**
     * 微信支付退款
     */
    public static String WX_PAY_REFUND = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    
    /**
     * 获取用户基本信息(UnionID机制)
     */
    public static String WX_USER_INFO = "https://api.weixin.qq.com/cgi-bin/user/info";
    
    /**
     * 卡券 api_ticket
     */
    public static String WX_CARD_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=wx_card&access_token=";
    
    /**
     * 卡券Code解码接口
     */
    public static String WX_CARD_DECRYPT = "https://api.weixin.qq.com/card/code/decrypt?access_token=";
    
    /**
     * 卡券核销接口
     */
    public static String WX_CARD_CONSUME = "https://api.weixin.qq.com/card/code/consume?access_token=";
    
    /**
     * 查询Code接口
     */
    public static String WX_CARD_GET = "https://api.weixin.qq.com/card/code/get?access_token=";

    /**
     * 提交付款码支付接口
     */
    public static String WX_PAY_MICRO = "https://api.mch.weixin.qq.com/pay/micropay";

    /**
     * 客服接口-发消息
     */
    public static String WX_MESSAGE_SEND = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=";

    /**
     * 新增永久素材
     */
    public static String WX_MATERIAL_ADD = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=";
    
    /**
     * 新增临时素材
     */
    public static String WX_TMP_MATERIAL_ADD = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=";
}
